package com.hyt.it.ogt.ks.feign.hystrix;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import com.hyt.core.exception.NestedBusinessException;
import com.hyt.it.ogt.ks.feign.CjClient;
import com.hyt.it.ogt.ks.model.cjvo.MessageInfo;

/**
 * 成绩服务Feign客户端熔断器
 */
@Component
public class CjClientHystrix implements CjClient {
	
	private Logger logger = LoggerFactory.getLogger(CjClientHystrix.class);
	
	@Override
	public String saveCandidateInfo(MessageInfo messageInfo) throws NestedBusinessException {
        logger.error("#推送考生成绩到成绩系统失败，进入熔断");
        throw new NestedBusinessException("推送考生成绩到成绩系统失败");
    }

}
